<?php
class ORMProduceTransition extends ORMBase {
  public function __construct() {
    parent::__construct('ProduceTransition');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->trackId = isset($object->trackId) ? $object->trackId : '';
    $epObject->sourceId = isset($object->sourceId) ? $object->sourceId : 0;
    $epObject->targetId = isset($object->targetId) ? $object->targetId : 0;
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->trackId = $epObject->trackId;
    $object->sourceId = $epObject->sourceId;
    $object->targetId = $epObject->targetId;
    return $object;
  }
}
?>
